Skip to content

vmm_tests: verify guest sizing and vsock across reboot - #5186

Open
Vivek Yadav (vyadavmsft) wants to merge 3 commits into
microsoft:mainfrom
vyadavmsft:vyadav/mshv-parity-boot-vsock-pr
Open

Vivek Yadav (vyadavmsft) wants to merge 3 commits into
microsoft:mainfrom
vyadavmsft:vyadav/mshv-parity-boot-vsock-pr

Conversation

@vyadavmsft

@vyadavmsft Vivek Yadav (vyadavmsft) commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

  • Verify online vCPUs and usable RAM from inside the existing TTRPC Linux boot test. Reuse the requested configuration and allow for memory reserved by Linux.
  • Reboot the guest in the existing virtio-vsock boot test. Require a changed boot ID, the configured CID, and a fresh command round trip on the new connection.

This strengthens regression coverage without changing VMM behavior, test registrations, or CI workflows.

Validation

  • Ran package-scoped cargo check, Clippy, and cargo doc, followed by cargo xtask fmt --fix.
  • ttrpc::test_ttrpc_interface and multiarch::openvmm_linux_x64_boot_virtio_vsock both passed on Linux x64 Intel MSHV on the identical source tree at 92f70f377.

@vyadavmsft
Vivek Yadav (vyadavmsft) requested a review from a team as a code owner November 20, 2026 19:33
Copilot AI balanced review requested due to automatic review settings November 20, 2026 19:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The aarch64 reboot test fails on KVM and HVF because they lack reset support, while dropping the vsock client early can leave live-connection cleanup untested.

2 open issues
What changed in this PR

Strengthens existing Linux boot tests with guest sizing checks and virtio-vsock checks across reboot, without changing VMM behavior, test registrations, or CI workflows.

Changes:

  • Verifies online vCPUs and usable guest RAM against the requested configuration, allowing for Linux-reserved memory.
  • Verifies the vsock CID and command round trips before and after reboot, requiring a changed boot ID.
File Description
vmm_tests/​vmm_tests/​tests/​tests/​ttrpc.rs Reuses sizing constants and validates guest CPU and memory reporting.
vmm_tests/​vmm_tests/​tests/​tests/​multiarch.rs Extends the virtio-vsock boot test with reboot and reconnection checks.

Review effort: Balanced

Keep the original Pipette client alive through reset so the test exercises reboot with an active vsock connection.
Copilot AI balanced review requested due to automatic review settings November 20, 2026 22:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The RAM-reservation threshold and vsock reboot check need validation on ARM64 and WHP, as reported execution covers only Linux x64 MSHV.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants